﻿#pragma once
#include "CParamContext.h"


// CWndAddParam 对话框

class CWndAddParam : public CDialogEx
{
	DECLARE_DYNAMIC(CWndAddParam)

public:
	CWndAddParam(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CWndAddParam();
	int nTypeId{5};

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_ADDPARAM };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	void Init(PCParamContext _params);

	CComboBox m_lstType;
	PCParamContext Params{};

	afx_msg void OnBnClickedOk();
	CString sType{};
	CString sName{};
	CString sNote{};
};
